<template>
  <div class="app">
    <AppHeader/>
    <div class="app-body">
      <Sidebar :navItems="nav"/>
      <main class="main">
        <breadcrumb :list="list"/>
        <div class="container-fluid">
          <router-view></router-view>
        </div>
      </main>
      <AppAside/>
    </div>
    <AppFooter/>
  </div>
</template>

<script>
  import nav from '../_nav'
  import { Header as AppHeader, Sidebar, Aside as AppAside, Footer as AppFooter, Breadcrumb } from '../components/'

  export default {
    name: 'full',
    components: {
      AppHeader,
      Sidebar,
      AppAside,
      AppFooter,
      Breadcrumb
    },
    data () {
      return {
        nav: nav.items
      }
    },
    computed: {
      name () {
        return this.$route.name
      },
      list () {
        return this.$route.matched
      }
    }
  }
</script>

<style>
  .el-pagination {
    float: right;
    margin-top: 10px;
  }
  .el-pager li{
    /*position: relative;*/
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.35;
    min-width: auto;
    height: auto;
    color: #20a8d8;
    background-color: #fff;
    border: 1px solid #ddd;
    font-weight: 400;
  }
  .el-pager li.active {
    color: #fff;
    background-color: #20a8d8;
    border-color: #20a8d8;
  }
  .el-pager li:hover {
    color: #167495;
    text-decoration: none;
    background-color: #c2cfd6;
    border-color: #ddd;
  }
  .el-pager li.btn-quicknext, .el-pager li.btn-quickprev {
    line-height: normal;
    color: #2d2f33;
  }
  .el-pager .el-icon-more::before {
     vertical-align: -3px;
   }
  .el-pagination .btn-next, .el-pagination .btn-prev {
    display: inline-block;
    padding: 0.67rem 0.75rem;
    margin-left: -1px;
    line-height: 1.35;
    min-width: auto;
    height: auto;
    color: #20a8d8;
    background-color: #fff;
    border: 1px solid #ddd;
  }
  .el-pagination .btn-next:hover, .el-pagination .btn-prev:hover {
    color: #167495;
    text-decoration: none;
    background-color: #c2cfd6;
    border-color: #ddd;
  }
  .modal-content{
    margin-top: 35%;
  }
  .badge {
    display: inline-block;
    padding: 0.4em 0.55em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
  }
  .btn-sm, .btn-group-sm > .btn {
    padding: .47rem .75rem;
  }
  .btn-sm{
    float: right;
  }
  @media (max-width: 991px){
    .app-header .navbar-brand {
      position: absolute;
      left: 50%;
      margin-left: -130px;
    }
  }
  @media (max-width: 767px){
    .row {
      margin-right: -25px;
      margin-left: -25px;
    }
    .el-pager li {
      /* position: relative; */
      display: inline-block;
      padding: 0.25rem 0.45rem;
      margin-left: -1px;
      line-height: 1.35;
      min-width: auto;
      height: auto;
      color: #20a8d8;
      background-color: #fff;
      border: 1px solid #ddd;
      font-weight: 400;
    }
    .el-pagination .btn-next, .el-pagination .btn-prev {
      display: inline-block;
      padding: 0.4rem 0.45rem;
      margin-left: -1px;
      line-height: 1.35;
      min-width: auto;
      height: auto;
      color: #20a8d8;
      background-color: #fff;
      border: 1px solid #ddd;
    }
  }
</style>
